<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>产品管理</title>
<link href="front/css/product_management.css" rel="stylesheet">
<script src="front/js/respond.js"></script>
<script src="front/js/jquery1.9.1.js"></script>
<script src="front/js/input.js"></script>
</head>

<body>
<div class="top">
	<div class="width_1200_1420">
    	<ul>
            <li><a href="/index.php" target="_blank">智诚首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
            <li><a href="#">OA系统</a>&nbsp;&nbsp;|&nbsp;&nbsp;</li>
            <li><a href="{:U('Public/logout')}">退出</a></li>
        </ul>
        <p class="top_p">服务电话：400-686868</p>
    </div>
</div>

<div class="content">
	<div class="width_1200_1420">
    	<div class="nav">
            <div class="logo">
                <img src="front/img/logo.png">
            </div>
            <ul class="ul_nav">
                <li><a href="{:U('Index/index')}">首页</a></li>
                <li><a  href="{:U('Customermanagement/customer_management')}">客户管理</a></li>
                <li><a href="{:U('Boothmanagement/booth_management')}">展位管理</a></li>
                <li><a class="sel" href="{:U('Productmanagement/product_management')}">产品管理</a></li>
                <li><a href="{:U('Guanliyuan/guanliyuan_management')}">管理员</a></li>
            </ul> 
            <div class="right">
                <img class="yuan" src="front/img/right.png">
                <span title="{:session('user_auth.username')}">{:session('user_auth.username')}</span>
                <div class="xiala">
                    <img id="xia_img" class="xia" src="front/img/xia.png">
                    <div class="select">
					<ul>
                            <li><a href="{:U('User/updatePassword')}">用户设置</a></li>
                            <li><a href="{:U('User/updateNickname')}">修改密码</a></li>
                            <li><a href="{:U('User/updateNickname')}">修改昵称</a></li>
                            <li><a href="{:U('Public/logout')}">退出账号</a></li>
                        </ul>
					</div>
                </div>
            </div>
        </div>
        <script>
        $(".ul_nav li a").click(function(){
            $(this).addClass("sel").parent().siblings().find("a").removeClass("sel");
        })
        $("#xia_img").click(function(){
            if($(".select").css("display") == "none"){
                $(".select").show();
                $(this).addClass("hover");
            }else{
                $(".select").hide();
                $(this).removeClass("hover");
            }
            
        })
        $(".select").hover(function(){
            $(this).show();
        },function(){
            $(this).hide();
            $("#xia_img").removeClass("hover");
        });
    </script>
	</div>
</div>
    <div class="width_1200_1420">
        <div class="chaxun">
    		<a href="{:U('Productmanagement/product_review')}"><p class="tab">产品审核</p></a>
            <p class="tab sel">产品管理</p>
            <a href="javascript:;" id="search" url="{:U('Productmanagement/product_management')}"><span class="suosou">搜素</span></a>
            <input type="text" class="my_input" name="name" value="{:I('name')}" placeholder="请输入产品编号/产品名称">
             <span class="kehu">产品查询</span>
    	</div>
        
       
       <!--  table  -->
        <table>
        	<tr>
            	<th>产品ID</th>
                <th>产品名称</th>
                <th>客户名称</th>
                <th>产品分类</th>
                <th>正位缩略图</th>
                <th>管理员</th>
                <th>预览产品</th>
                <th>操作</th>
                <th>商城状态</th>
            </tr>
			<notempty name="productmanagement">
			<volist name="productmanagement" id="product_info">
            <tr>
            	<td>{$product_info.id}</td>
                <td>{$product_info.name}</td>
                <td>{$product_info.name}</td>
                <td>{$product_info.classification}</td>
                <td><img src="front/img/wurenji.png"></td>
                <td>1</td>
                <td><a href="###"><span>预览</span></a></td>
                <td><eq name="product_info.status" value="1">
                <a href="{:U('Productmanagement/changestatus?method=forbidproduct&id='.$product_info['id'])}" title="屏蔽">屏蔽</a>
                <else/>
                <a href="{:U('Productmanagement/changestatus?method=resumeproduct&id='.$product_info['id'])}" title="显示">显示</a>
                </eq>&nbsp;
                <a href="{:U('del?id='.$product_info['id'])}" title="删除"><span id="shanchu">删除</span></a></td>
                <td><span id="pinbi">通过</span></td>
            </tr>
            </volist>
			<else/>
			<td colspan="10" class="text-center"> 你好暂时还没有内容! </td>
		    </notempty>
        </table>
       <!--  <p class="page"><span class="prev">上一页</span><span class="select">2</span>/<span class="zongshu">26</span>
        <span class="next">下一页</span></p> -->
		<div id="" class="page">
		   {$_page}
			
		</div>
    </div>


<!--  bottom  -->
<div class="footer">
	<div class="width_1200_1420">
    	<ul class="list">
        	<li class="list_li">企业中心
            	<ul>
                	<li><a href="#">我要入驻</a></li>
                    <li><a href="#">入驻须知</a></li>
                    <li><a href="#">服务条款</a></li>
                    <li><a href="#">网展助手</a></li>
                    <li><a href="#">问讯处</a></li>
                </ul>
            </li>
            <li class="list_li">关于我们
            	<ul>
                	<li><a href="#">关于网展</a></li>
                    <li><a href="#">合作伙伴</a></li>
                    <li><a href="#">联系方式</a></li>
                    <li><a href="#">合作渠道</a></li>
                    <li><a href="#">招贤纳士</a></li>
                </ul>
            </li>
            <li class="list_li">战略优势
            	<ul>
                	<li><a href="#">全景和虚拟现实服务平台</a></li>
                    <li><a href="#">完整商务功能新型VR全景展示</a></li>
                    <li><a href="#">支持各移动终端设备</a></li>
                </ul>
            </li>
        </ul>
        
        <div class="erweima">
        	<p>微信扫描关注</p>
            <img src="front/img/code.png">
        </div>
    </div>
    
    <div class="xinxi">&copy;版权所有 2009-2016 北京智诚有限公司   www.gscity.com</div>
</div>

<block name="script">
<script type="text/javascript">
$(function(){
	//搜索功能
	$("#search").click(function(){
		var url = $(this).attr('url');
        var query  = $('.chaxun').find('input').serialize(); //这是个坑啊，class名称写错了，耽误哥的时间啊，血的教训
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});
	//回车搜索
	$(".my_input").keyup(function(e){
		if(e.keyCode === 13){
			$("#search").click();
			return false;
		}
	});
	
});
</script>
</block>
</body>
</html>

        

